package com.hamster.crmpre.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface DictionaryDepartmentMapper{

    /**
     * 根据title查询id
     * @param title 部门名
     * @return 部门id
     */
    @Select("select id from dictionary_department where title=#{title}")
    String queryIdByTitle(@Param("title") String title);
}
